public class ElectricCar extends Car{
    private static int electricCarCount = 0;
    private int batterySize;
    public ElectricCar(String stockCode,String supplier,int variable_quantity,double price,int batterySizee){
        super(stockCode, supplier, variable_quantity,price);
        this.batterySize = batterySize;
        electricCarCount++;
    }
    public  String getDescription(){
        return super.getDescription() + ", Battery Size: " + batterySize + " kWh";

    }
    public void chargeBattery(){
        System.out.println("Charging the battery of size " + batterySize + " kWh.");
    }
    public static int getElectricCarCount(){
        return electricCarCount;
    }
}
